﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhao.Models.DTO
{
    /// <summary>
    /// 球馆通知DTO
    /// </summary>
    public class NotificationDTO
    {
        /// <summary>
        /// 通知唯一标识
        /// </summary>
        public int? NotificationID { get; set; }

        /// <summary>
        /// 通知标题（如"系统维护通知"）
        /// </summary>
        public string Title { get; set; } = null!;

        /// <summary>
        /// 通知内容（支持富文本格式）
        /// </summary>
        public string Content { get; set; } = null!;

        /// <summary>
        /// 发布人ID（外键关联 Users 表）
        /// </summary>
        public int? PublisherID { get; set; }

        /// <summary>
        /// 关联球馆名称（"平台通知" 表示通用通知）
        /// </summary>
        public string? VenueName { get; set; }  // 替换为字符串类型

        /// <summary>
        /// 通知类型：1-后台通知，5-用户通知
        /// </summary>
        public short NotificationType { get; set; }

        /// <summary>
        /// 软删除标记
        /// </summary>
        public short? IsDeleted { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime? PublishTime { get; set; }

        /// <summary>
        /// 自动下架时间（null 表示永久有效）
        /// </summary>
        public DateTime? ExpiryTime { get; set; }

        /// <summary>
        /// 通知附带的图片 URL
        /// </summary>
        public string? Image { get; set; }
        /// <summary>
        /// 通知状态
        /// </summary>
        public short Status { get; set; }
    }
}
